package com.bootdo.common.service;

import com.bootdo.common.domain.FileAttatchmentDO;
import com.bootdo.common.vo.AttatchmentVO;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2020-04-07 14:35:22
 */
public interface FileAttatchmentService {
	
	FileAttatchmentDO get(String uuid);
	
	List<FileAttatchmentDO> list(Map<String, Object> map);

	public List<AttatchmentVO> listAttatchmentByCid(String cid,String type);


	int count(Map<String, Object> map);
	
	int save(FileAttatchmentDO fileAttatchment);
	
	int update(FileAttatchmentDO fileAttatchment);
	
	int remove(String uuid);

	int removeByCid(String ID);

	int removeByFid(String id);
	int removeByFidAndType(String id, String type);

	int batchRemove(String[] uuids);
}
